namespace Asmex.FileViewer
{
    using Asmex.ObjViewer;
    using System;

    public abstract class Region
    {
        private long _len;
        private long _start;

        public override string ToString()
        {
            string[] strArray = new string[] { base.GetType().Name, "  {", this._start.ToString("X8"), " - ", (this._len + this._start).ToString("X8"), "}" };
            return string.Concat(strArray);
        }

        [ObjViewer(false)]
        public long End
        {
            get
            {
                return (this._start + this._len);
            }
        }

        [ObjViewer(false)]
        public long Length
        {
            get
            {
                return this._len;
            }
            set
            {
                this._len = value;
            }
        }

        [ObjViewer(false)]
        public long Start
        {
            get
            {
                return this._start;
            }
            set
            {
                this._start = value;
            }
        }
    }
}
